let cols = [
  { label: "全选", show: true },
  // { label: "详情", show: true },

  /**
   * 车牌号、座位、驾驶员、电话、驱动类型、营运性质、停靠简称想、行驶证1、行驶证2、上户日期、
   * 购买日期、车型分类、挂靠简称、车辆品牌1、车辆品牌2、车辆颜色、运营证照片1、运营证照片2、
   * 运营证年审、是否上网车、发动机号、车架号、最大续航、车辆照片1/2/3、车长、车宽、车高、
   * 内饰照片1/2/3、行李箱长、行李箱宽、行李箱高、行李箱个数、禁行区域（多个、中间用/隔开）
   * （有主驾显示照片）身份证、驾驶证、资格证、再教育证明、体检、无重大事故
   */
  { label: "座位数", field: "seats", width: 80, sortNo: 3, show: true },
  { label: "电话", field: "phone", width: 80, sortNo: 4, show: true },
  {
    label: "车牌号",
    field: "plateNum",
    width: 80,
    sortNo: 2,
    show: true,
  },
  {
    label: "营运性质",
    field: "serviceType",
    width: 80,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆颜色",
    field: "carColor",
    width: 80,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆性质",
    field: "carUsage",
    width: 80,
    sortNo: 4,
    show: true,
  },
  {
    label: "所属运输公司",
    field: "belongCompanyName",
    width: 150,
    sortNo: 5,
    show: true,
  },
  {
    label: "本公司购买日期",
    field: "ownPurchaseDate",
    width: 130,
    sortNo: 6,
    show: true,
  },
  {
    label: "行驶证购车日期",
    field: "purchaseDate",
    width: 130,
    sortNo: 6,
    show: true,
  },
  {
    label: "车辆类型",
    field: "vehicleType",
    width: 80,
    sortNo: 7,
    show: true,
  },
  {
    label: "是否上网",
    field: "isInternet",
    width: 80,
    sortNo: 7,
    show: true,
  },
  {
    label: "添加时间",
    field: "addTime",
    width: 80,
    sortNo: 7,
    show: true,
  },

  {
    label: "维修时间",
    field: "repairTimeslot",
    width: 100,
    sortNo: 2,
    show: true,
  },
  {
    label: "启动时间",
    field: "startTime",
    width: 100,
    sortNo: 7,
    show: true,
  },
  {
    label: "报停时间",
    field: "destoryTime",
    width: 100,
    sortNo: 3,
    show: true,
  },
  {
    label: "下线时间",
    field: "downTime",
    width: 140,
    sortNo: 4,
    show: true,
  },

  {
    label: "车辆状态",
    field: "status",
    width: 100,
    align: "center",
    sortNo: 1,
    show: true,
  },
  {
    label: "动力来源",
    field: "powerSource",
    width: 80,
    sortNo: 5,
    show: true,
  },
  { label: "续航里程", field: "mileage", width: 80, sortNo: 6, show: true },
  { label: "正常油耗", field: "fuel", width: 80, sortNo: 6, show: true },
  { label: "方位", field: "direction", width: 80, sortNo: 6, show: true },

  {
    label: "停靠地址全称",
    field: "dockedAddress",
    width: 110,
    sortNo: 7,
    show: true,
  },
  {
    label: "停靠地址简称",
    field: "simpleDockedAddress",
    width: 110,
    sortNo: 7,
    show: true,
  },
  {
    label: "停靠地址经纬度",
    field: "dockedLatLon",
    width: 110,
    sortNo: 7,
    show: true,
  },
  {
    label: "驾照需求",
    field: "drivingType",
    width: 80,
    sortNo: 1,
    show: true,
  },
  {
    label: "所属公司简称",
    field: "belongComapnySimName",
    width: 110,
    sortNo: 2,
    show: true,
  },
  {
    label: "可跑区域",
    field: "runningArea",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "驾驶证正反面",
    field: "licensePhotoUrl",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "注册上户日期",
    field: "purchaseDate",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆年限",
    field: "carYear",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "过户日期",
    field: "ownPurchaseDate",
    width: 200,
    sortNo: 3,
    show: true,
  },
  // {
  //   label: "车系ID",
  //   field: "carTrainId",
  //   width: 200,
  //   sortNo: 3,
  //   show: true,
  // },
  {
    label: "挂靠客户",
    field: "customId",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "运营证正反面",
    field: "operationPhotoUrl",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "年审日期",
    field: "inspectDate",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆名牌",
    field: "carPlateUrl",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "发动机号",
    field: "engineNum",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车架号",
    field: "vinNum",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "续航里程",
    field: "mileage",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆外观",
    field: "carPhotoUrl",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆长宽高",
    field: "carLwh",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆内饰",
    field: "carInterUrl",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆行李箱个数",
    field: "carTrunkCount",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "车辆行李箱尺寸",
    field: "carTrunkLwh",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "不可跑区域",
    field: "notRunningArea",
    width: 200,
    sortNo: 3,
    show: true,
  },
  // {
  //   label: "报停时间",
  //   field: "destoryTime",
  //   width: 200,
  //   sortNo: 3,
  //   show: true,
  // },
  {
    label: "维修时间段",
    field: "repairTimeSlot",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "报停后启动时间",
    field: "startTime",
    width: 200,
    sortNo: 3,
    show: true,
  },
  {
    label: "下线时间",
    field: "downTime",
    width: 200,
    sortNo: 3,
    show: true,
  },
  // {
  //   label: "车辆警告信息",
  //   field: "repairTimeSlot",
  //   width: 200,
  //   sortNo: 3,
  //   show: true,
  // },
  // {
  //   label: "车辆预留信息",
  //   field: "repairTimeSlot",
  //   width: 200,
  //   sortNo: 3,
  //   show: true,
  // },
];

export default cols;


/**
    <!--  要废弃的表格  开始-->
    <el-table
      :ref="dg.tbName"
      :data="dg.list"
      row-key="id"
      :height="bodyHeight"
      :row-class-name="rowClassName"
      border
      fit
      @select="selRow"
      @expand-change="saveRowExpand"
    >
      <el-table-column
        fixed="left"
        type="selection"
        width="40"
        prop="id"
      ></el-table-column>
      <!-- <el-table-column fixed="left" type="expand" label="详情" width="60">
        <template slot-scope="props">
          <el-form label-position="left" inline class="my-table-expand">
            <el-form-item label="车牌号">
              <span>{{ props.row.plateNum }}</span>
            </el-form-item>
          </el-form>
        </template>
      </el-table-column> -->
      <el-table-column
        fixed="right"
        :prop="'mainDriver.realName'"
        :label="'主驾驶员'"
        :width="190"
        :align="'right'"
      >
        <template slot-scope="scope">
          <span v-if="scope.row.mainDriver">
            {{ scope.row.mainDriver.driver.phone }}【{{
              scope.row.mainDriver.driver.realName
            }}】
          </span>
          <span v-else class="c-gray">未设置主驾驶员 </span>

          <br /><el-button size="mini" @click="handleRowRepaired(scope.row)"
            >维修记录</el-button
          >
        </template>
      </el-table-column>

      <fragment v-for="(col, index) in dg.columns" :key="'col_' + index">
        <el-table-column
          v-if="index > 1 && col.show"
          :prop="dg.dropCol[index].field"
          :label="col.label"
          :width="dg.dropCol[index].width"
          :align="dg.dropCol[index].align"
        >
          <template slot-scope="scope">
            <!-- <span v-if="dg.dropCol[index].field == 'mainDriver.realName'">
                            <span v-if="scope.row.mainDriver">
                                {{scope.row.mainDriver.phone}}【{{scope.row.mainDriver.realName}}】
                            </span>
                            <span v-else>未设置主驾驶员 </span>

                            <br /><el-button size="mini">维修记录</el-button>
                        </span> -->

            <span v-if="dg.dropCol[index].field == 'carUsage'">
              {{ getCusUsage(scope.row.carUsage) }}
            </span>
            <span v-else-if="dg.dropCol[index].field == 'customId'">
              {{ getCustom(scope.row.customId) }}
            </span>
            <span v-else-if="dg.dropCol[index].field == 'serviceType'">
              {{ getServiceType(scope.row.serviceType) }}
            </span>
            <span v-else-if="dg.dropCol[index].field == 'vehicleType'">
              {{ getVehicleType(scope.row.vehicleType) }}
            </span>

            <span v-else-if="dg.dropCol[index].field == 'repairTimeslot'">
              <span v-html="getSEtimeText(scope.row.repairTimeslot)"></span>
            </span>

            <!-- <span v-else-if="dg.dropCol[index].field == 'destoryTime'">
              <span v-html="getSEtimeText(scope.row.destoryTime)"></span>
            </span> -->
            <span v-else-if="dg.dropCol[index].field == 'carColor'">
              <span v-html="getCarColor(scope.row.carColor)"></span>
            </span>
            <span v-else-if="dg.dropCol[index].field == 'downTime'">
              <span v-html="getTimeText(scope.row.downTime)"></span>
            </span>

            <span v-else-if="dg.dropCol[index].field == 'powerSource'">
              {{ getPowerSource(scope.row.powerSource) }}
            </span>
            <span v-else-if="dg.dropCol[index].field == 'licensePhotoUrl'">
              <div>
                <span v-if="getlicensePhotoUrl(scope.row.licensePhotoUrl)[0]">
                  正面：
                  <img
                    style="width: 40px; height: 40px; vertical-align: middle"
                    :src="
                      getlicensePhotoUrl(scope.row.licensePhotoUrl)[0] || ''
                    "
                    alt="暂无图片"
                  />
                </span>
                <span v-if="getlicensePhotoUrl(scope.row.licensePhotoUrl)[1]">
                  反面：
                  <img
                    style="width: 40px; height: 40px; vertical-align: middle"
                    :src="
                      getlicensePhotoUrl(scope.row.licensePhotoUrl)[1] || ''
                    "
                    alt="暂无图片"
                  />
                </span>
              </div>
            </span>

            <!--  -->
            <span v-else-if="dg.dropCol[index].field == 'operationPhotoUrl'">
              <div>
                <span v-if="getlicensePhotoUrl(scope.row.operationPhotoUrl)[0]">
                  正面：
                  <img
                    style="width: 40px; height: 40px; vertical-align: middle"
                    :src="
                      getlicensePhotoUrl(scope.row.operationPhotoUrl)[0] || ''
                    "
                    alt="暂无图片"
                  />
                </span>
                <span v-if="getlicensePhotoUrl(scope.row.operationPhotoUrl)[1]">
                  反面：
                  <img
                    style="width: 40px; height: 40px; vertical-align: middle"
                    :src="
                      getlicensePhotoUrl(scope.row.operationPhotoUrl)[1] || ''
                    "
                    alt="暂无图片"
                  />
                </span>
              </div>
            </span>
            <span v-else-if="dg.dropCol[index].field == 'carPhotoUrl'">
              <div>
                <img
                  v-if="getlicensePhotoUrl(scope.row.carPhotoUrl)[0]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carPhotoUrl)[0] || ''"
                  alt="暂无图片"
                />,
                <img
                  v-if="getlicensePhotoUrl(scope.row.carPhotoUrl)[1]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carPhotoUrl)[1] || ''"
                  alt="暂无图片"
                />
                ,
                <img
                  v-if="getlicensePhotoUrl(scope.row.carPhotoUrl)[2]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carPhotoUrl)[2] || ''"
                  alt="暂无图片"
                />
              </div>
            </span>
            <!-- carPlateUrl -->
            <span v-else-if="dg.dropCol[index].field == 'carPlateUrl'">
              <div>
                <img
                  v-if="getlicensePhotoUrl(scope.row.carPlateUrl)[0]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carPlateUrl)[0] || ''"
                  alt="暂无图片"
                />
                <img
                  v-if="getlicensePhotoUrl(scope.row.carPlateUrl)[1]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carPlateUrl)[1] || ''"
                  alt="暂无图片"
                />
              </div>
            </span>
            <!--  -->
            <span v-else-if="dg.dropCol[index].field == 'carInterUrl'">
              <div>
                <img
                  v-if="getlicensePhotoUrl(scope.row.carInterUrl)[0]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carInterUrl)[0] || ''"
                  alt="暂无图片"
                />,
                <img
                  v-if="getlicensePhotoUrl(scope.row.carInterUrl)[1]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carInterUrl)[1] || ''"
                  alt="暂无图片"
                />,
                <img
                  v-if="getlicensePhotoUrl(scope.row.carInterUrl)[2]"
                  style="width: 40px; height: 40px; vertical-align: middle"
                  :src="getlicensePhotoUrl(scope.row.carInterUrl)[2] || ''"
                  alt="暂无图片"
                />
              </div>
            </span>
            <!-- carTrunkLwh  dockedLocation -->
            <span v-else-if="dg.dropCol[index].field == 'dockedLatLon'">
              <div>
                经度:{{ getlicensePhotoUrl(scope.row.dockedLatLon)[0] || 0 }}
              </div>
              <div>
                纬度:{{ getlicensePhotoUrl(scope.row.dockedLatLon)[1] || 0 }}
              </div>
            </span>
            <span v-else-if="dg.dropCol[index].field == 'carLwh'">
              <div>长:{{ getlicensePhotoUrl(scope.row.carLwh)[0] || 0 }}cm</div>
              <div>宽:{{ getlicensePhotoUrl(scope.row.carLwh)[1] || 0 }}cm</div>
              <div>高:{{ getlicensePhotoUrl(scope.row.carLwh)[2] || 0 }}cm</div>
            </span>
            <span v-else-if="dg.dropCol[index].field == 'carTrunkLwh'">
              <div>
                长:{{ getlicensePhotoUrl(scope.row.carTrunkLwh)[0] || 0 }}cm
              </div>
              <div>
                宽:{{ getlicensePhotoUrl(scope.row.carTrunkLwh)[1] || 0 }}cm
              </div>
              <div>
                高:{{ getlicensePhotoUrl(scope.row.carTrunkLwh)[2] || 0 }}cm
              </div>
            </span>
            <span v-else-if="dg.dropCol[index].field == 'isInternet'">
              {{ scope.row.isInternet == 1 ? "否" : "是" }}
            </span>

            <span v-else-if="dg.dropCol[index].field == 'runningArea'">
              {{ getRunningArea(scope.row.runningArea) }}
            </span>

            <span v-else-if="dg.dropCol[index].field == 'status'">
              <span v-if="compareTime(scope.row)">
                <el-button
                  style="color: red; border-color: red"
                  @click="handleStart(scope.row)"
                  >报停启动</el-button
                >
              </span>
              <span v-else>
                <span v-html="getCarStatus(scope.row)"></span>
              </span>
            </span>

            <span v-else>{{ scope.row[dg.dropCol[index].field] }}</span>
          </template>
        </el-table-column>
      </fragment>
    </el-table>
    <!--  要废弃的表格 结束 -->




 */